package Demo12;

public class Demo {

    public static void main(String[] args) {

        Zi zi = new Zi();
        Fu fu = new Fu() {
            @Override
            public void eat() {
                System.out.println("父类eat执行");
            }
        };


        fu.eat();
        zi.eat();
        System.out.println(fu.a);
        System.out.println(zi.a);

    }
}
